.class public Lcom/example/m6wmr/AniActivity;
.super Landroid/app/Activity;
.source "AniActivity.java"


# instance fields
.field private appdataver:Ljava/lang/String;

.field private cursor:Landroid/database/Cursor;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field h:Landroid/os/Handler;

.field private helper:Ldbclass/DBOpenHelper;

.field m:Lmyapp/MyApp;

.field private mcontext:Landroid/content/Context;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 41
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 46
    iput-object v0, p0, Lcom/example/m6wmr/AniActivity;->cursor:Landroid/database/Cursor;

    .line 47
    iput-object v0, p0, Lcom/example/m6wmr/AniActivity;->m:Lmyapp/MyApp;

    .line 68
    new-instance v0, Lcom/example/m6wmr/AniActivity$1;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/AniActivity$1;-><init>(Lcom/example/m6wmr/AniActivity;)V

    iput-object v0, p0, Lcom/example/m6wmr/AniActivity;->h:Landroid/os/Handler;

    .line 41
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/AniActivity;)Landroid/database/sqlite/SQLiteDatabase;
    .locals 1

    .prologue
    .line 45
    iget-object v0, p0, Lcom/example/m6wmr/AniActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    return-object v0
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 50
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 51
    const v2, 0x7f030005

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/AniActivity;->setContentView(I)V

    .line 53
    invoke-virtual {p0}, Lcom/example/m6wmr/AniActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    check-cast v2, Lmyapp/MyApp;

    iput-object v2, p0, Lcom/example/m6wmr/AniActivity;->m:Lmyapp/MyApp;

    .line 54
    iget-object v2, p0, Lcom/example/m6wmr/AniActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v2}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 55
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 56
    iput-object p0, p0, Lcom/example/m6wmr/AniActivity;->mcontext:Landroid/content/Context;

    .line 57
    new-instance v2, Ldbclass/DBOpenHelper;

    iget-object v3, p0, Lcom/example/m6wmr/AniActivity;->mcontext:Landroid/content/Context;

    invoke-direct {v2, v3}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/example/m6wmr/AniActivity;->helper:Ldbclass/DBOpenHelper;

    .line 58
    iget-object v2, p0, Lcom/example/m6wmr/AniActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v2}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v2

    iput-object v2, p0, Lcom/example/m6wmr/AniActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 61
    new-instance v1, Landroid/os/Message;

    invoke-direct {v1}, Landroid/os/Message;-><init>()V

    .line 63
    .local v1, "msg":Landroid/os/Message;
    const/4 v2, 0x5

    iput v2, v1, Landroid/os/Message;->arg1:I

    .line 64
    iget-object v2, p0, Lcom/example/m6wmr/AniActivity;->h:Landroid/os/Handler;

    const-wide/16 v3, 0x1194

    invoke-virtual {v2, v1, v3, v4}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    .line 65
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 301
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 302
    iget-object v0, p0, Lcom/example/m6wmr/AniActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_0

    .line 303
    iget-object v0, p0, Lcom/example/m6wmr/AniActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 305
    :cond_0
    iget-object v0, p0, Lcom/example/m6wmr/AniActivity;->cursor:Landroid/database/Cursor;

    if-eqz v0, :cond_1

    .line 306
    iget-object v0, p0, Lcom/example/m6wmr/AniActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 308
    :cond_1
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    .line 295
    const/4 v0, 0x0

    return v0
.end method

.method public savearea()Z
    .locals 1

    .prologue
    .line 124
    new-instance v0, Lcom/example/m6wmr/AniActivity$2;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/AniActivity$2;-><init>(Lcom/example/m6wmr/AniActivity;)V

    .line 183
    invoke-virtual {v0}, Lcom/example/m6wmr/AniActivity$2;->start()V

    .line 184
    const/4 v0, 0x0

    return v0
.end method

.method public savemarkettype()Z
    .locals 1

    .prologue
    .line 243
    new-instance v0, Lcom/example/m6wmr/AniActivity$4;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/AniActivity$4;-><init>(Lcom/example/m6wmr/AniActivity;)V

    .line 290
    invoke-virtual {v0}, Lcom/example/m6wmr/AniActivity$4;->start()V

    .line 291
    const/4 v0, 0x0

    return v0
.end method

.method public saveshoptype()Z
    .locals 1

    .prologue
    .line 191
    new-instance v0, Lcom/example/m6wmr/AniActivity$3;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/AniActivity$3;-><init>(Lcom/example/m6wmr/AniActivity;)V

    .line 238
    invoke-virtual {v0}, Lcom/example/m6wmr/AniActivity$3;->start()V

    .line 239
    const/4 v0, 0x0

    return v0
.end method
